{% layout="admin_layout.html" %}
{-title-}
{(admin.tags/menu.html)}
{-title-}
{-content-}
<div class="row-fluid">
    <div class="span12">
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>标签名字</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {%for k,a in pairs(tags) do %}
                <form name="sdfsdf" action="{*helper:url('admin/tags/destroy')*}" method="post">
                    <tr>
                        <td class="span10">
                            {{a['tag_name']}} 
                        </td>
                        <td>
                            <a class="btn" href="{*helper:url('admin/tags/edit',{['id']=a['id']})*}">更新</a>
                            <input type="hidden" name="id" value="{{a['id']}}">
                            <input type="submit" class="btn" value="删除"/>
                        </td>
                    </tr>
                </form>
                {%end%}
            </tbody>
        </table>
        {% if page then%}
        {(page.html, {pageobj=page})}
        {%end%}
    </div>
</div>
{-content-}